.class public Lcom/donson/momark/view/view/u;
.super Lcom/donson/momark/view/view/s;


# instance fields
.field a:Landroid/widget/RelativeLayout$LayoutParams;

.field private b:Ljava/util/List;

.field private c:Ljava/lang/Runnable;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/content/Context;

.field private g:Z

.field private h:Z

.field private j:Lcom/donson/momark/view/w;

.field private w:Lcom/donson/momark/a/r;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/donson/momark/a/r;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1}, Lcom/donson/momark/view/view/s;-><init>(Landroid/content/Context;)V

    iput-boolean v0, p0, Lcom/donson/momark/view/view/u;->g:Z

    iput-boolean v0, p0, Lcom/donson/momark/view/view/u;->h:Z

    new-instance v0, Lcom/donson/momark/view/view/i;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/i;-><init>(Lcom/donson/momark/view/view/u;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/u;->c:Ljava/lang/Runnable;

    iput-object p2, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iput-object p1, p0, Lcom/donson/momark/view/view/u;->e:Landroid/content/Context;

    invoke-direct {p0}, Lcom/donson/momark/view/view/u;->g()V

    return-void
.end method

.method static synthetic a(Lcom/donson/momark/view/view/u;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/u;->e:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic d(Lcom/donson/momark/view/view/u;)Lcom/donson/momark/a/r;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    return-object v0
.end method

.method private g()V
    .locals 2

    const/4 v1, -0x1

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/donson/momark/view/view/u;->a:Landroid/widget/RelativeLayout$LayoutParams;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    iget-object v0, p0, Lcom/donson/momark/view/view/u;->d:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/donson/momark/view/view/u;->a:Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {p0, v0, v1}, Lcom/donson/momark/view/view/u;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method public a(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/donson/momark/view/view/u;->h:Z

    return-void
.end method

.method public varargs a([Ljava/lang/Object;)V
    .locals 1

    const/4 v0, 0x0

    aget-object v0, p1, v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/donson/momark/view/view/u;->d:Landroid/widget/ImageView;

    invoke-virtual {p0}, Lcom/donson/momark/view/view/u;->removeAllViews()V

    invoke-virtual {p0}, Lcom/donson/momark/view/view/u;->a()V

    return-void
.end method

.method public d()V
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x1

    iget-object v0, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v0, v0, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v0}, Lcom/donson/momark/a/a/a;->g()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    iget-boolean v0, p0, Lcom/donson/momark/view/view/u;->g:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v0, v0, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v0}, Lcom/donson/momark/a/a/a;->b()I

    move-result v0

    if-nez v0, :cond_1

    iput-boolean v5, p0, Lcom/donson/momark/view/view/u;->g:Z

    new-instance v0, Ljava/lang/Thread;

    iget-object v1, p0, Lcom/donson/momark/view/view/u;->c:Ljava/lang/Runnable;

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    :cond_1
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/donson/momark/view/view/u;->e:Landroid/content/Context;

    invoke-static {v0}, Lcom/donson/momark/b/a;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v0, v0, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v0}, Lcom/donson/momark/a/a/a;->j()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/donson/momark/activity/AdActivity;

    invoke-direct {v1}, Lcom/donson/momark/activity/AdActivity;-><init>()V

    iget-object v2, p0, Lcom/donson/momark/view/view/u;->e:Landroid/content/Context;

    invoke-virtual {v1, v2, v0}, Lcom/donson/momark/activity/AdActivity;->statWebActivity(Landroid/content/Context;Ljava/lang/String;)V

    iput-boolean v4, p0, Lcom/donson/momark/view/view/u;->g:Z

    goto :goto_0

    :pswitch_1
    iget-boolean v0, p0, Lcom/donson/momark/view/view/u;->h:Z

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v0, v0, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v0}, Lcom/donson/momark/a/a/a;->j()Ljava/lang/String;

    new-instance v0, Lcom/donson/momark/view/w;

    invoke-direct {v0}, Lcom/donson/momark/view/w;-><init>()V

    iput-object v0, p0, Lcom/donson/momark/view/view/u;->j:Lcom/donson/momark/view/w;

    iget-object v0, p0, Lcom/donson/momark/view/view/u;->j:Lcom/donson/momark/view/w;

    iget-object v1, p0, Lcom/donson/momark/view/view/u;->e:Landroid/content/Context;

    invoke-virtual {p0}, Lcom/donson/momark/view/view/u;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    iget-object v3, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    invoke-virtual {v0, v1, v2, p0, v3}, Lcom/donson/momark/view/w;->a(Landroid/content/Context;Landroid/view/ViewParent;Landroid/widget/RelativeLayout;Lcom/donson/momark/a/r;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/u;->j:Lcom/donson/momark/view/w;

    invoke-virtual {v0}, Lcom/donson/momark/view/w;->a()Lcom/donson/momark/view/view/k;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/donson/momark/view/view/k;->a(Z)V

    iput-boolean v4, p0, Lcom/donson/momark/view/view/u;->h:Z

    iput-boolean v5, p0, Lcom/donson/momark/view/view/u;->g:Z

    goto :goto_0

    :cond_2
    iput-boolean v5, p0, Lcom/donson/momark/view/view/u;->g:Z

    const-string v0, "AdvertiseView.onClick"

    const-string v1, "user onclick advertiseView again to hidden downloakButton"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    invoke-virtual {p0}, Lcom/donson/momark/view/view/u;->e()V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v0, v0, Lcom/donson/momark/a/r;->j:Lcom/donson/momark/a/q;

    invoke-virtual {v0}, Lcom/donson/momark/a/q;->g()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/donson/momark/view/view/u;->b:Ljava/util/List;

    new-instance v0, Lcom/donson/momark/activity/AdActivity;

    invoke-direct {v0}, Lcom/donson/momark/activity/AdActivity;-><init>()V

    iget-object v1, p0, Lcom/donson/momark/view/view/u;->e:Landroid/content/Context;

    iget-object v2, p0, Lcom/donson/momark/view/view/u;->b:Ljava/util/List;

    invoke-virtual {v0, v1, v2}, Lcom/donson/momark/activity/AdActivity;->startCirclViewactivity(Landroid/content/Context;Ljava/util/List;)V

    iput-boolean v4, p0, Lcom/donson/momark/view/view/u;->g:Z

    goto/16 :goto_0

    :pswitch_3
    iget-object v0, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v0, v0, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v0}, Lcom/donson/momark/a/a/a;->a()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.DIAL"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "tel:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v3, v3, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v3}, Lcom/donson/momark/a/a/a;->j()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    iget-object v1, p0, Lcom/donson/momark/view/view/u;->e:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    iput-boolean v4, p0, Lcom/donson/momark/view/view/u;->g:Z

    goto/16 :goto_0

    :cond_3
    iget-object v0, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v0, v0, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v0}, Lcom/donson/momark/a/a/a;->a()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "donson.momark"

    const-string v1, "-----------------------advertiseimageview------\u5f39\u51fa\u53d1\u4fe1\u606f\u7684\u754c\u9762------"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SENDTO"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "smsto:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v3, v3, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v3}, Lcom/donson/momark/a/a/a;->j()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    const-string v1, "sms_body"

    iget-object v2, p0, Lcom/donson/momark/view/view/u;->w:Lcom/donson/momark/a/r;

    iget-object v2, v2, Lcom/donson/momark/a/r;->e:Lcom/donson/momark/a/a/a;

    invoke-virtual {v2}, Lcom/donson/momark/a/a/a;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/donson/momark/view/view/u;->e:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    iput-boolean v4, p0, Lcom/donson/momark/view/view/u;->g:Z

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public e()V
    .locals 2

    iget-boolean v0, p0, Lcom/donson/momark/view/view/u;->h:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/donson/momark/view/view/u;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/donson/momark/view/view/u;->j:Lcom/donson/momark/view/w;

    invoke-virtual {v1}, Lcom/donson/momark/view/w;->a()Lcom/donson/momark/view/view/k;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->removeView(Landroid/view/View;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/donson/momark/view/view/u;->h:Z

    :cond_0
    return-void
.end method
